<?php 
//查询条件
$criteria=new CDbCriteria;
$criteria->compare('zm_id',$this->company['info']['zm_id']);
$criteria->compare('zp_status',2);
$criteria->compare('zp_state',2);
$criteria->limit = 6;

//热销产品
$criteria_hots = $criteria;
$criteria_hots->limit = 8;
$criteria_hots->order = " zp_sale_num DESC ";
$product_hots = Product::model()->findAll($criteria_hots);


?>


<?php $this->beginContent('//layouts/space_column'); ?>
<?php echo $content; ?>
<div class="hr_15"></div>
<!--热销推荐 start-->
 <div class="pro_list list_hover shop_hot_sales">
	<div class="shop_hd03">热销推荐</div>
	<div class="bd pro_list">
		<ul class="list c_f">
		<?php if(!empty($product_hots)){ foreach($product_hots as $key=>$data){?>
			<li class="item <?php if(($key+1)%4==0) echo 'no_mr'?>">
				<div class="c_img c_img160">
					<?php echo CHtml::link(Tool::thumb($data->zp_pic,160,160,$data->zp_name),array('/product/detail','id'=>$data->zp_id),array('target'=>'_blank'))?>
				</div>
				<p class="price ff_yh">
					<del class="c_999 f_r d_n">&yen;58.00</del>
					<strong class="fs_15 c_orange">&yen;<?php echo $data->zp_price?></strong>
				</p>
				<p class="title c_666"><a href="javascript:" title="">乐奈 包邮「礼盒装」8口味松 露巧克力[400g] 零食</a>
					<?php echo CHtml::link(mb_substr($data->zp_name,0,22,'utf8'),array('/product/detail','id'=>$data->zp_id),array('target'=>'_blank'))?>
				</p>
				<p class="buy">
					<?php echo CHtml::link('点击购买',array('/product/detail','id'=>$data->zp_id),array('class'=>'btn btn_buy','target'=>'_blank','title'=>'点击购买'))?>
				</p>
			</li>
		<?php }} ?>
		</ul>
	</div>
</div>  
<!--热销推荐 end--> 
<?php $this->endContent(); ?>